package com.bwie.controller;

import com.bwie.service.TbOrderRecordService;
import com.bwie.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2025/6/3 15:53
 */

@RestController
@RequestMapping("/shop/orderRecord")
public class TbOrderRecordController {

    @Autowired
    TbOrderRecordService tbOrderRecordService;

    /**
     * @description 根据订单ID获取订单记录
     * @params [orderId]
     * @return com.bwie.utils.Result
     * @author 军哥
     * @date 2025/6/3 15:55
     */
    @PostMapping("/getOrderRecordList/{orderId}")
    public Result getOrderRecordList(@PathVariable("orderId") Integer orderId) {
        return tbOrderRecordService.getOrderRecordList(orderId);
    }

}
